package org.ellwood.core.common.entity;

import lombok.Data;
import lombok.experimental.SuperBuilder;

/**
 * @ProjectName: ellwood-boot-pro
 * @PackageName: org.ellwood.core.common.entity
 * @ClassName: AccessResponseLog
 * @Description: // 访问响应日志
 * @Author: Ellwood
 * @CreateDate: 2024/6/15 - 上午12:31
 * @Version: V1.0.0
 */
@Data
@SuperBuilder
public class AccessResponseLog {

    private String traceId;
    /**
     * 开始时间戳
     */
    private long timestamp;
    private String userId;
    /**
     * 请求地址
     */
    private String url;
    /**
     * 请求耗时 (ms)
     */
    private long ms;
    /**
     * 响应结果
     */
    private Object resBody;
    /**
     * url 参数体
     */
    private Object param;
    /**
     * form表单参数体
     */
    private Object form;
    /**
     * post body参数体
     */
    private Object reqBody;
    private String type;
    private String method;

    {
        type = "response";
    }

}
